/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package client;

import client.process.GlobalVar;
import client.process.RepoClient;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;

/**
 *
 * @author ifan
 */
public class GlobalForm {
    public static Login login;
    public static Client client;
    public static FirstLogin firstLogin;
    public static RepoClient repoClient;

    public static void setCenter(JFrame fr) {
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        int posx = (int) ((d.width - fr.getWidth()) / 2);
        int posy = (int) ((d.height - fr.getHeight()) / 2);
        fr.setLocation(posx, posy);
    }
}
